import {observer, inject} from "mobx-react";
import React, {Component} from 'react';

export const Tmp1 = inject("login")(observer(({ login }) =>
    <p>
        {'function component ' + login.state.test}
    </p>
));

@inject('login')
@observer
class Tmp2 extends Component {
    render() {
        return (
            <p>
                {'class component ' + this.props.login.state.test}
            </p>
        )
    }
}

export default Tmp2